package util;
//new 对象 静态加载类，编译时候加载所有可能需要的类

public class reflect {
	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		  //创建类类型
		  Class s2=Student.class;
		  Student s = new Student();
		  Class s3=s.getClass();
		  Class c3 =null;
		  //动态加载类
		  c3=Class.forName("Student");
		  //通过类类型创建对象
		  c3.newInstance();
	}
  
}
